Skip to main content

mergMK

Type

library

Description

mergMK is a LiveCode MapKit external that adds a map control which supports showing user location with heading, adding annotation pins and polylines, polygons and circles.

Important: The Map Kit framework uses Google services to provide map data pre-iOS 6. Use of specific classes of this framework (and their associated interfaces) binds you to the Google Maps/Google Earth API terms of service. You can find these terms of service at here.

Associated Syntax

Command

NameSummarySyntax
mergMKCreateThis command initialises/creates the map but does not display itmergMKCreate
mergMKDeleteThis command deletes the current map and removes it from the screen if it's currently visible mergMKDelete
mergMKSetSet the properties of the mapmergMKSet <pProperty>, <pValue>, [<pAnimated>]
mergMKDeleteAnnotationThis command deletes the annotation from the mapmergMKDeleteAnnotation <pAnnotationID>
mergMKAnnotationSetSet individual annotation propertiesmergMKAnnotationSet <pAnnotationID>, <pProperty>, <pValue>
mergMKDeleteOverlayThis command deletes the overlay from the mapmergMKDeleteOverlay <pOverlayID>
mergMKGetDirectionsGet directions between two coordinatesmergMKGetDirections <pFromCoordinate>, <pToCoordinate>
mergMKDirectionsDeleteDelete the directionsmergMKDirectionsDelete <pDirectionID>
mergMKDirectionsAddPolylineOverlayAdd a polyline overlay showing the directions for a route or a step within a route mergMKDirectionsAddPolylineOverlay <pDirectionID>, <pRouteNumber>, [<pStepNumber>], [<pLineWidth>], [<pLineColor>]

Function

NameSummarySyntax
mergMKGetGet a map propertymergMKGet(<pProperty>)
mergMKAddAnnotationReturns an id for the annotation that was createdmergMKAddAnnotation(<pCoordinate>, <pTitle>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pPinColor>], [<pDraggable>], [<pCalloutImage>], [<pShowCalloutButton>])
mergMKAddAnnotationWithImageReturns an id for the annotation that was createdmergMKAddAnnotationWithImage(<pCoordinate>, <pTitle>, <pImage>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pDraggable>], [<pImageCenterOffset>], [<pCalloutImage>], [<pShowCalloutButton>])
mergMKAnnotationGetGet individual annotation propertiesmergMKAnnotationGet(<pAnnotationID>, <pProperty>)
mergMKAddPolylineOverlayReturns an id for the overlay that was createdmergMKAddPolylineOverlay(<pCoordinates>, [<pLineWidth>], [<pLineColor>])
mergMKAddPolygonOverlayReturns an id for the overlay that was createdmergMKAddPolygonOverlay(<pCoordinates>, [<pLineWidth>], [<pLineColor>], [<pFillColor>])
mergMKAddCircleOverlayReturns an id for the overlay that was createdmergMKAddCircleOverlay(<pCoordinate>, <pRadius>, [<pLineWidth>], [<pLineColor>], [<pFillColor>])
mergMKDirectionsRouteGetGet a property of a directions routemergMKDirectionsRouteGet(<pDirectionID>, <pRouteNumber>, <pProperty>)
mergMKDirectionsRouteStepGetGet a property of a directions route stepmergMKDirectionsRouteStepGet(<pDirectionID>, <pRouteNumber>, <pStepNumber>, <pProperty>)

Message

NameSummarySyntax
mergMKUserLocationChangedThis message is sent to the object that created the map control when the user's location is updated on the map mergMKUserLocationChanged <pCoordinate>
mergMKRegionChangedThis message is sent to the object that created the map control when the map region is changed either by the user or by script mergMKRegionChanged <pRegion>
mergMKMapLoadedThis message is sent to the object that created the map control when the map is loaded mergMKMapLoaded
mergMKUserTrackingModeChangedThis message is sent to the object that created the map control when the user tracking mode is changed mergMKUserTrackingModeChanged <pTrackingMode>
mergMKAnnotationCalloutTappedThis message is sent to the object that created the map control when the user touches on the callout disclosure icon of an annotation mergMKAnnotationCalloutTapped <pAnnotationID>
mergMKAnnotationSelectedThis message is sent to the object that created the map control when the user touches an annotation mergMKAnnotationSelected <pAnnotationID>
mergMKAnnotationDeselectedThis message is sent to the object that created the map control when an annotation pin is deselected (user touches somewhere else) mergMKAnnotationDeselected <pAnnotationID>
mergMKAnnotationDroppedThis message is sent to the object that created the map control when an annotation pin is dragged and dropped to a new location mergMKAnnotationDropped <pAnnotationID>, <pCoordinate>
mergMKDirectionsErrorThis message is sent to the object that called mergMKGetDirections when there is an error determining directions mergMKDirectionsError <pFromCoordinate>, <pToCoordinate>, <pError>
mergMKDirectionsThis message is sent to the object that called mergMKGetDirections when directions have been determined mergMKDirections <pFromCoordinate>, <pToCoordinate>, <pDirectionsID>, <pRoutes>
Thank you for your feedback!

Was this page helpful?